import { MyCachePage } from './../pages/my-cache/my-cache';
import { DailyStateTrans } from './../pipes/DailyState';
//local
import { NgModule, ErrorHandler } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { IonicApp, IonicModule, IonicErrorHandler, IonicPageModule } from "ionic-angular";
import { MyApp } from "./app.component";
import { IonicStorageModule } from "@ionic/storage";
import { HttpModule } from "@angular/http";
//page
import { HomePage } from "../pages/home/home";
import { LoginPage } from "../pages/login/login";
import { EleDetailPage } from "../pages/elevator-detail/elevator-detail";
import { WorkTypePage } from "../pages/worktype/worktype";
import { DeatilRemarksPage } from "../pages/detail-remarks/detail-remarks";
import { WorkSumPage } from "../pages/work-sum/work-sum";
import { SignPage } from "../pages/sign/sign";
import { MainceHistory } from "../pages/maince-history/maince-history";
import { RepairHistory } from "../pages/repair-history/repair-history";
import { CheckHistory } from "../pages/check-history/check-history";
import { HelpHistory } from "../pages/help-history/help-history";
import { FeedbackPage } from "../pages/feedback/feedback";
import { DebrisPage } from "../pages/maince-type/debris/debris";
import { DebrisHalf } from "../pages/maince-type/debris/half-mon/debris-half-mon";
import { EscalatorPage } from "../pages/maince-type/escalator/escalator"; //自动扶梯 人行道
import { EscalatorHalfMon } from "../pages/maince-type/escalator/half-mon/escalator-half-mon";
import { EscalatorHalfYear } from "../pages//maince-type/escalator/half-year/escalator-half-year";
import { EscalatorQuarter } from "../pages/maince-type/escalator/quarter/escalator-quarter";
import { EscalatorYear } from "../pages/maince-type/escalator/year/escalator-year";
import { Refresher } from "./../pages/refresher/refresher";
import { InformDetail } from "./../pages/refresher/inform-detail/inform-detail";
import { EmergencyrescuePage } from "./../pages/emergencyrescue/emergencyrescue";
import { RepairInfoPage } from "../pages/repair-info/repair-info";
import { EmergencyrescueDetailPage } from "../pages/emergencyrescue-detail/emergencyrescue-detail";
import { EmergencyEventListPage } from "../pages/emergency-event-list/emergency-event-list";
import { DailyInspectionPage } from "../pages/daily-inspection/daily-inspection";
import { DailyInspectionFtPage } from "../pages/daily-inspection-ft/daily-inspection-ft";
import { NoticeDetail } from "./../pages/refresher/notice-detail/notice-detail";
import { TractionPage } from "./../pages/maince-type/traction/traction";
import { TractionHalf } from "./../pages/maince-type/traction/half-mon/traction-half-mon";
import { TractionHalfYear } from "./../pages/maince-type/traction/half-year/traction-half-year";
import { TractionQuarter } from "./../pages/maince-type/traction/quarter/traction-quarter";
import { TractionYear } from "./../pages/maince-type/traction/year/traction-year";
import { RescuDrillPage } from "../pages/rescue-drill/rescue-drill";
import { RepairListPage } from "../pages/used-repair/repair-list/repair-list";
import { RepairDetailPage } from "../pages/used-repair/repair-detail/repair-detail";
import { DebrisQuarter } from "../pages/maince-type/debris/quarter/debris-quarter";
import { DebrisHalfYear } from "../pages/maince-type/debris/half-year/debris-half-year";
import { DebrisYear } from "../pages/maince-type/debris/year/debris-year";
import { HydpressPage } from "../pages/maince-type/hydpress/hydpress";
import { HydpressHalf } from "../pages/maince-type/hydpress/half-mon/hydpress-half-mon"; //液压驱动电梯半月保
import { HydpressHalfYear } from "../pages/maince-type/hydpress/half-year/hydpress-half-year"; //液压驱动电梯半年保
import { HydpressQuarter } from "../pages/maince-type/hydpress/quarter/hydpress-quarter"; //液压驱动电梯季度保
import { HydpressYear } from "../pages/maince-type/hydpress/year/hydpress-year"; //液压驱动电梯年保
import { ApplyRepairPage } from "../pages/repair-apply/apply-repair"; //报修
import { MaintInfo } from "../pages/home/maint-info/maint-info";
import { UsedInfo } from "../pages/home/used-info/used-info";
import { ApplyRepairDetailPage } from "../pages/repair-apply-detail/apply-repair-detail";
import { RepairApplyList } from "../pages/repair-apply-list/repair-apply-list";
import { SecurityManagePage } from "../pages/supervision/security-manage/security-manage";
import { ElevatorUsedInspectionPage } from "../pages/supervision/elevator-used-inspection/elevator-used-inspection";
import { SafeControlPage } from "../pages/supervision/safe-control/safe-control";
import { SafeControlDetailPage } from "../pages/supervision/safe-control-detail/safe-control-detail";
import { SafeControlBookPage } from "../pages/supervision/safe-control-book/safe-control-book";
import { CheckItem } from "../pages/supervision/check-item/check-item";
import { CheckItemDetail } from "../pages/supervision/check-item-detail/check-item-detail";
import { ElevatorCheck } from "../pages/supervision/elevator-check/elevator-check";
import { ElevatorCheckModify } from "../pages/supervision/elevator-check-modify/elevator-check-modify";
import { ScanPage } from "../pages/scan/scan";
import { CheckElevator } from "../pages/maintenance/checkElevator";
import { SelfCheckPage } from "../pages/selfcheck/self-check";

//component
import { PermissionDirctive } from "../components/permissionDirective/permission.directive";
import { SignatrueComponent } from "../components/signatrueComponent/signatrue.Component";
import { DataImgShowComponent } from '../components/data-img-show/data-img-show'
//pipe
import { detailDate } from "../pipes/dodetailDate";
import { I18N } from "../pipes/i18n";
import { GetDay } from "../pipes/getDay";
import { GetYearMonth } from "../pipes/getYearMonth";
import { GetWeak } from "../pipes/getWeak";
import { ConstantTransferPipe } from "../pipes/constantTransferPipe";
import { TimePipe } from "../pipes/timeTransfer";
import { RepairStateTrans } from "../pipes/repairStateTrans";
//native
import { StatusBar } from "@ionic-native/status-bar";
import { SplashScreen } from "@ionic-native/splash-screen";
import { SetPage } from "../pages/set/set";
import { PlanList } from "../pages/supervision/plan-list/plan-list";
import { RecordCheckPage } from "../pages/supervision/record-check/record-check";
import { RecordMedia } from "../pages/supervision/record-media/record-media";
import { RecordCheckDtPage } from "../pages/supervision/record-check-detail/record-check-detail";
import { ChangePwdPage } from "../pages/changePwd/changePwd";
import { ChangePhonePage } from "../pages/changePhone/changePhone";
import { MaintUserAddPage } from "../pages/maint-user-add/maintUserAdd";
import { DailyHistory } from "../pages/daily-history/daily-history";
import { FaceUpdatePage } from '../pages/user-face/face-update';
import { Activity1Page } from '../pages/activity/activity1/activity1';
import { MeatasisPage } from '../pages/user-meatasis/user-meatasis';
import { WorkSumCachePage } from '../pages/work-sum-cache/work-sum-cache';
import { CheckElevatorScan } from "../pages/maintenance/check-elevator-scan/check-elevator-scan";
import { CheckElevatorList } from "../pages/maintenance/check-elevator-list/check-elevator-list";
import { FinishCheckList } from "../pages/maintenance/finish-check-list/finish-check-list";
import { SafeControlDownload } from "../pages/supervision/safe-control/safe-control-download/safe-control-download";
import { maintenanceBeforePage } from "../pages/maince-type/maintenance-before/maintenanceBefore";
import { SelfCheckTractionPage } from "../pages/selfcheck/self-check-traction/self-check-traction";
import { SelfCheckImpurityPage } from "../pages/selfcheck/self-check-impurity/self-check-impurity";
import { SelfCheckHydraulicPage } from "../pages/selfcheck/self-check-hydraulic/self-check-hydraulic";
import { SelfCheckEscalatorPage } from "../pages/selfcheck/self-check-escalator/self-check-escalator";
import { JPush } from '@jiguang-ionic/jpush';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    PermissionDirctive,
    I18N,
    detailDate,
    LoginPage,
    EleDetailPage,
    WorkTypePage,
    DeatilRemarksPage,
    WorkSumPage,
    SignPage,
    MainceHistory,
    RepairHistory,
    CheckHistory,
    HelpHistory,
    FeedbackPage,
    SignatrueComponent,
    DataImgShowComponent,
    Refresher,
    GetDay,
    GetWeak,
    TimePipe,
    GetYearMonth,
    DebrisPage,
    DebrisHalf,
    Refresher,
    InformDetail,
    NoticeDetail,
    MaintInfo,
    EmergencyrescuePage,
    RepairInfoPage,
    EmergencyrescueDetailPage,
    RepairStateTrans,
    DailyStateTrans,
    EmergencyEventListPage,
    DailyInspectionPage,
    RepairDetailPage,
    TractionPage,
    TractionHalf,
    TractionQuarter,
    TractionHalfYear,
    TractionYear,
    EscalatorPage,
    UsedInfo,
    EscalatorHalfMon,
    DebrisQuarter,
    DebrisHalfYear,
    DebrisYear,
    EscalatorHalfYear,
    HydpressPage,
    HydpressHalf,
    HydpressHalfYear,
    HydpressQuarter,
    HydpressYear,
    EscalatorQuarter,
    RepairListPage,
    EscalatorYear,
    ConstantTransferPipe,
    RescuDrillPage,
    ApplyRepairPage,
    ApplyRepairDetailPage,
    RepairApplyList,
    SecurityManagePage,
    ElevatorUsedInspectionPage,
    SafeControlPage,
    SafeControlDetailPage,
    CheckItemDetail,
    SafeControlBookPage,
    CheckItem,
    ElevatorCheck,
    ElevatorCheckModify,
    ScanPage,
    DailyInspectionFtPage,
    SelfCheckPage,
    SetPage,
    PlanList,
    RecordCheckPage,
    RecordMedia,
    RecordCheckDtPage,
    ChangePwdPage,
    ChangePhonePage,
    MaintUserAddPage,
    DailyHistory,
    FaceUpdatePage,
    Activity1Page,
    MeatasisPage,
    WorkSumCachePage,
    MyCachePage,
    CheckElevator,
    CheckElevatorScan,
    CheckElevatorList,
    FinishCheckList,
    SafeControlDownload,
    SelfCheckTractionPage,
    SelfCheckHydraulicPage,
    SelfCheckImpurityPage,
    SelfCheckEscalatorPage,
    maintenanceBeforePage,
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicStorageModule.forRoot(),
    IonicModule.forRoot(MyApp, {
      backButtonText: "",
      iconMode: "ios",
      modalEnter: "modal-slide-in",
      modalLeave: "modal-slide-out",
      tabsPlacement: "bottom",
      pageTransition: "ios",
      mode: "ios",
      statusbarPadding: true
    }, {
        links: [
          { component: LoginPage, name: 'LoginPage' },
          { component: Activity1Page, name: 'Activity1Page' },
        ]
      })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    LoginPage,
    DataImgShowComponent,
    EleDetailPage,
    WorkTypePage,
    DeatilRemarksPage,
    WorkSumPage,
    SignPage,
    MainceHistory,
    RepairHistory,
    CheckHistory,
    HelpHistory,
    FeedbackPage,
    DebrisPage,
    DebrisHalf,
    UsedInfo,
    Refresher,
    InformDetail,
    NoticeDetail,
    MaintInfo,
    EmergencyrescuePage,
    RepairInfoPage,
    EmergencyrescueDetailPage,
    EmergencyEventListPage,
    DailyInspectionPage,
    RepairDetailPage,
    TractionPage,
    TractionQuarter,
    TractionHalf,
    TractionHalfYear,
    RepairListPage,
    TractionYear,
    EscalatorPage,
    EscalatorHalfMon,
    DebrisQuarter,
    DebrisHalfYear,
    DebrisYear,
    EscalatorHalfYear,
    HydpressPage,
    HydpressHalf,
    HydpressHalfYear,
    HydpressQuarter,
    HydpressYear,
    EscalatorQuarter,
    EscalatorYear,
    RescuDrillPage,
    ApplyRepairPage,
    ApplyRepairDetailPage,
    RepairApplyList,
    SecurityManagePage,
    ElevatorUsedInspectionPage,
    SafeControlPage,
    SafeControlDetailPage,
    SafeControlBookPage,
    CheckItem,
    CheckItemDetail,
    ElevatorCheck,
    ElevatorCheckModify,
    ScanPage,
    DailyInspectionFtPage,
    SelfCheckPage,
    SetPage,
    PlanList,
    RecordCheckPage,
    RecordMedia,
    RecordCheckDtPage,
    ChangePwdPage,
    ChangePhonePage,
    MaintUserAddPage,
    DailyHistory,
    FaceUpdatePage,
    Activity1Page,
    MeatasisPage,
    WorkSumCachePage,
    MyCachePage,
    CheckElevator,
    CheckElevatorScan,
    CheckElevatorList,
    FinishCheckList,
    SafeControlDownload,
    SelfCheckTractionPage,
    SelfCheckHydraulicPage,
    SelfCheckImpurityPage,
    SelfCheckEscalatorPage,
    maintenanceBeforePage
  ],
  providers: [
    StatusBar,
    JPush,
    SplashScreen,
    { provide: ErrorHandler, useClass: IonicErrorHandler }
  ]
})
export class AppModule { }
